home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5334 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  617 b 

  1. From: cmoore@msn.com (Carl  S. Moore)
  2. Subject: Re: C++ 4.5 CanClose
  3. Date: 3 Feb 96 21:38:17 -0800
  4. References: <00001a81+000098f8@msn.com> <DM7624.771.0.-s@cs.vu.nl>
  5. Message-ID: <00001a81+000099c9@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. >How about calling CloseWindow(), which will call >CanClose automatically?
  11. >
  12. >void TMyWindow::Exitgame()
  13. >{
  14. >  CloseWindow();
  15. >}
  16.  
  17. Worked great....  So simple, I wish I'd know that sooner, as I hacked 
  18. around many hours.  I was thrown off course by the fact that my code 
  19. worked in the prior BC++.
  20.  
  21. thanks,  carl
  22.